package edu.kjxy.day02Synchronized.t1;

/**
 * 功能:方法内的变量为线程安全
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 18:15
 */
public class RunTest {
    public static void main(String[] args) {
        HasSelfPrivateNum numRef = new HasSelfPrivateNum();
        ThreadA aThread = new ThreadA(numRef);
        aThread.start();
        ThreadB bThread = new ThreadB(numRef);
        bThread.start();
    }
}
